package com.woniuxy.controller;

import com.woniuxy.mapper.RoleManagementMapper;
import com.woniuxy.util.ResponseData;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/role")
public class RoleController {
    @Resource
    RoleManagementMapper roleManagementMapper;
    @GetMapping("/queryAll")
    public ResponseData queryAll(){
        roleManagementMapper.updateUserNumber();
        roleManagementMapper.updateCourierNumber();
        roleManagementMapper.updateSorterNumber();
        return ResponseData.success(roleManagementMapper.queryAll());

    }
}
